package com.study.example.domain.OneToOne;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 * Created by User on 2017/9/15.
 */
@Entity
public class ParkingSpot {
    @Id
    Long id;

    String garage;

    @OneToOne(mappedBy = "location.parkingSpot")
    Employee assignedTo;

}
